﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame4
{
    class AIPlayer : AIObject
    {
        private Object player;

        public AIPlayer(String id, TypeAIObject type)
            : base(id, type)
        {
            stateMachine = new StateMachine(this);
            stateMachine.CurrentState = Player_InitialState.getInstance();
            this.player = GameInfo.getInstance().getObject(id);
        }

        public override void update()
        {
            if (stateMachine != null)
                stateMachine.update();
        }


        public Object Player
        {
            get { return player; }
            set { player = value; }
        }
    }
}
